refactoring

cleanup of code in mainwindow. pending: cleanup of 'Spel' (game) class