The exercise provided by school was very lame and can be read here. I gave it my own twist and turned it into a 1v1 snake game where you can also play against a CPU and even customize your own controls.
The game doesn't render properly on this monitor but you get the idea. There are 2 players on a grid, Blue square vs Red Square, they try to get the purple food to score a point. Both players can have 2 active walls with which they can block the opponent but each player can move through their own walls.

Here i am plaing against a Hard CPU and the hard cpu is programmed to block of the food if it is in the lead. It put itself and 2 walls aronud the food so that the time runs out and confirms the win.

I customized the controls to say nooo and haha but you can customize them anyway you want

