Refactored the ui so it is comletely independant of the Game.