Console game on java