Move logic from GUI to Controller and add dialogs

Ship placement logic is now part of the Controller instead of the GUI.

When the game is over, a dialog will pop up telling the player if they
won or lost.