'Adjusts Mario\'s position based on his x, y velocities and
potential collisions'

def adjust_mario_position(self):

    self.last_x_position = self.mario.rect.right
    self.mario.rect.x += round(self.mario.x_vel)
    self.check_mario_x_collisions()
    if (self.mario.in_transition_state == False):
        self.mario.rect.y += round(self.mario.y_vel)
        self.check_mario_y_collisions()
    if (self.mario.rect.x < (self.viewport.x + 5)):
        self.mario.rect.x = (self.viewport.x + 5)
