Added Turn checking, cost checking and total amount checking to
resourceBarController