I'm writing a code for a board game.
To play the game, a player generates two random numbers and colours in an area on the grid indicated by the numbers. For example if the generated number is a 2 and a 3 the player clicks in the 2x3 square which results in the colour of the square being changed.
A player should only be able to click and change the colour of the square represented by the random numbers only.
...