Working collision detection with ground & wall.