Sprite animation, code cleanup

- Player sprite now animated.
- Cleaned up some movement code.
- Ground detection now more accurate.