Implement a feature to add random obstacles on the game grid to increase the difficulty and challenge for the player. Obstacles will appear in random positions and will act as barriers that the snake must avoid. If the snake collides with an obstacle, the game ends.
Implement a feature to add random obstacles on the game grid to increase the difficulty and challenge for the player. Obstacles will appear in random positions and will act as barriers that the snake must avoid. If the snake collides with an obstacle, the game ends.