'Changes Mario to a FALL state if more than a pixel above a pipe,
ground, step or box'

def test_if_mario_is_falling(self):

    self.mario.rect.y += 1
    test_collide_group = pg.sprite.Group(self.ground_step_pipe_group, self.brick_group, self.coin_box_group)
    if (pg.sprite.spritecollideany(self.mario, test_collide_group) is None):
        if ((self.mario.state != c.JUMP) and (self.mario.state != c.DEATH_JUMP) and (self.mario.state != c.SMALL_TO_BIG) and (self.mario.state != c.BIG_TO_FIRE) and (self.mario.state != c.BIG_TO_SMALL) and (self.mario.state != c.FLAGPOLE) and (self.mario.state != c.WALKING_TO_CASTLE) and (self.mario.state != c.END_OF_LEVEL_FALL)):
            self.mario.state = c.FALL
        elif ((self.mario.state == c.WALKING_TO_CASTLE) or (self.mario.state == c.END_OF_LEVEL_FALL)):
            self.mario.state = c.END_OF_LEVEL_FALL
    self.mario.rect.y -= 1
