import pygame 

pygame.init()
screen_surface = pygame.display.set_mode((800, 600))
clock = pygame.time.Clock()
def load_image(path, position):
    image = pygame.image.load(path)
    surface = image.convert()
    rect = surface.get_rect(center=position)
    return [image, surface, rect]

def draw_image(image_list):
    _, surface, rect = image_list
    screen_surface.blit(surface, rect)

player = load_image("player.png", [400,300])

game_status = True
while game_status:
    events = pygame.event.get()
    for event in events:
        print(event)

        if event.type == pygame.QUIT:
            game_status = False
    draw_image(player)
    pygame.display.update()     
    clock.tick(60)
pygame.quit()