InBox

In order to create our Snake game a number of functions need to be implemented. When the snake moves outside of the boundaries of the predefined box the player dies. A first step towards implementing this feature is to make a check (predicate) which verifies whether a certain coordinate is within the boundaries of the field. This means that the coordinates can not go below zero or over 64.

Finish the inBox function below, note that we have already defined width and height.