I really couldn't understand the difference between them (debug and release mods)
but after putting it in release mode it become very fast from 1.5 second per update to 0.007 seconds
but I have changed the way of pixels collision detection to boolean variables
every pixel have a boolean variable that associated with it. it is set to false when there is already something in it
true if nothing drawing it self in it and every time I want to move I check if the pixels that I am going to have all
a true value(nothing drawing it self)
and the results was mush mush better