Command Line Tic Tac Toe written in Java