Implemented island collision detection.

The player should no longer be able to walk off islands or land on sky.
The debug tile highlight does not work perfectly when the player is
turning, but it should work fine if the coordinates are updated at least
once per frame.