@Override
	public void tick(MainGame game, Person person) {
		if(targetTree != null && game.world.getTile(targetTree.x, targetTree.y).getID() != World.tree.getID())
			targetTree = null;
		
		//Locate the tree
		if(targetTree == null) 
			locateTree(game, person);

		//Move to the tree
		if(targetTree != null) {
			person.setTargetPosition(targetTree.x, targetTree.y);
			treeAttempts = 0;
		
			//if we are at the tree and it is a tree, gather some of it's resources.
			if(person.getX() == targetTree.x && person.getY() == targetTree.y) {
				Resource resource = World.tree.gatherResources(game.world, targetTree.x, targetTree.y, 1);
				person.storedWood.add(resource);
			}
		}else{
			treeAttempts++;
		}
		
		
		//Otherwise, move onto the next task at hand
		if(treeAttempts >= 3)
			person.endTask();
		
		//tickCount++;
	}