Added titles to the JOptionPane.Messages.
Added game-logic features.