Snake is a classic arcade game that has captured the hearts of gamers for decades. Its simple yet engaging gameplay made it a favorite among players of all ages, starting from the time it graced the screens of early mobile phones to its evolution in numerous modern gaming platforms. The core objective is straightforward: players control a snake that continuously moves in a specific direction, and the goal is to collect food items that cause the snake to grow longer. However, the challenge lies in maneuvering without hitting the walls or colliding with the snake's own growing body.