Limited the diver to the inside of the window

i also made a speed variable so i could easily change the speed of each
direction at once.