Added return statements to checkForInvalidMove and checkDraw