collision logic and game over logic added