Added collision detection to the game