Fixed bug moving to top left.

Also added check for if the corner I base current position on is
off-screen.