adjust javadoc.
Minor cleanup.
Fix bug where running games after optimization either failed or did not show game over dialog.
Fix return type of overridden methods.