Added Self-collision

modified the game to account for self-collision