def player_fullname(conn, player_code):
    """Returns the full name of the player when the code is supplied"""
    c = conn.cursor()
    c.execute("SELECT name FROM player WHERE p_code=?", (player_code,))
    return c.fetchone()[0]