a simple terminal naughts and crosses game