Added resource calculation to nextTurn