detect state where a player has no more valid moves, open game over dialog

add game over dialog that quits or starts a new game