Added zooming out when you reach the edge of the screen

The zooming out is pretty bad right now and not too well written.