Moved functionality from the Widget to GameEngine