Added rudimentary ai to collect resources.