Changed some interfaces and some bug fixes in the UI folder and the GameEngine class.