Completed implementation of game processing thread.