protect getPlayerFromIndex() from non player index
create resetGame function used when game is over