Cleaned up code base.
Moved varibles to local.
Collision detection.