Increment fruit number
Reference parameters
Conditions to avoid being out of range of the grid