@Override
	public void tick() {
		if(storedWood.getAmount() > maxResource || storedFood.getAmount() > maxResource || storedMetal.getAmount() > maxResource || storedStone.getAmount() > maxResource) {
			changeTask(new TaskStoreResources());
		}

		if(task == null) getNewTask();
		
		if(task != null)  {
			task.tick(game, this);
		}else{
			Random rand = new Random();
			if(rand.nextDouble() <= 0.05) {
				tx = getX() + rand.nextInt(20) - 10;
				ty = getY() + rand.nextInt(20) - 10;
			}
		}
	}