public bool OnPlayerPush(Direction dir, int x, int y) { BoxCharacter box = GetBox(x, y); if (!box) { return(false); } box.MoveForward(dir); return(true); }