Not sure what I've done wrong...

Ah yes very good, however, that is why I define MIN as 1, so that it doesn't error when at coordinates [0][0]. Instead it starts at 1 to avoid problems and to keep the game running correctly.