Improved character controls. Added raycasting for collision detection.