public void update(STPGame game) {
		removecurrentstatic(game);
		game.staticslist.add(hitbox);
		if(pushleft.intersects(game.player.hitbox) && candir(2,game)) {
			removecurrentstatic(game);
			x = x + 1;
			createpushbox();
		} else if (pushright.intersects(game.player.hitbox) && candir(3,game)) {
			removecurrentstatic(game);
			x = x - 1;
			createpushbox();
		} else if (pushdown.intersects(game.player.hitbox) && candir(1,game) ) {
			removecurrentstatic(game);
			y = y - 1;
			createpushbox();
		} else if (pushup.intersects(game.player.hitbox)&& candir(0,game)) {
			removecurrentstatic(game);
			y = y + 1;
			createpushbox();
		}
	}