Fixed threshold animation delay and added check for silly error condition.
Added map wrapping. Refactored some stuff.

- If going any farther would cause the camera view to be outside the game world's bounds, move lucas to the opposite end of the game world. This essentially allows the map to loop.
- There is an issue with moving the player to a position that is still in sync with the background grass. With current camera and world bounds and the wrap_overshoot var, map wrapping looks pretty smooth, but these are hard coded and it would be nice to calculate the wrap_overshoot as a function of camera and world bounds and perhaps the size of the background tile.