Complete gameController logic (untested)