pass
Passes the turn to the next player. Saves the game state if the game is not local. Only check player turn if it is a not local game.
Return
The new game state after passing the turn.
Throws
if the game has already ended.
if the game is not started yet (board or players are null,empty).
if there is an error saving the game state.
if there are available plays and passing is not allowed.