Separated GUI from game logic