Changed this to gameBoard[x][y].getColor()