validWordButton.setBackground(Color.WHITE);
validWordButton.addActionListener(new AbstractAction() {
@Override
public void actionPerformed(ActionEvent e) {
if (rack.rackIsFull()) {
ErrorMessagePopup errorPopup = new ErrorMessagePopup(null, "<HTML>Please, place tiles on the game board<BR> before validate</HTML>");
errorPopup.showErrorMessage();
} else {
getController().notifyValidWord();
}
}
});