got gameover logic working for all gameboard sizes