adding collisiondetection fixing a bug in highscore