moved code from playerController to gameController and removed playerController