adding speed based on the height of the screen