Fixed player edge movement bug.

Player now moves edge to edge in left and up directions.
Fixing formula for edge movement
Starting work on end level logic.