major refactoring needs to be done from game panel to game thread. fuck.