added obstacle collision detection and add points to the score