- This function is getting quite long - consider adding checkWin and checkLoose functions here;