Simple Tic Tac Toe implemented with Java swing