move code to game controller