html platformer - partial collision control