added gatherResources to nextTurn function