collison detection added in the game