Added bounding box collision detection for the sprite and maze.