Collision detection

Added collision detection between the player object and the obstacles.
The game resets a second after the collision.