Fully functional chessboard in Java