def clean_games_stats(game_details_ele, picture_link, url):
    """
    This module contains functions for cleaning data,
    it is called by BGA_scraper when run.
    Keyword arguements:
    -------------------
    game_details - game info to be cleaned, string
    picture_link - url to game image, passed on without cleaning
    url - url to game page, passed on without cleaning

    Returns:
    --------
    players - number of players required
    playtime_cleaned - aproximate playtime in minutes
    complexity - game complexity ranked from 1 (lowest) to 5 (highest)
    picture_link - url for the game image, to be downloaded later
    url - url to game page, for reference
    """
    game_details = game_details_ele.text
    game_details = game_details.split('\n')
    game_details = game_details[1]

    players = game_details[0:5]
    playtime = game_details[8:12]
    playtime_cleaned = playtime.split()
    playtime_cleaned = playtime_cleaned[0]
    complexity = game_details[-5:]

    # add to dictionary in BGA_scraper
    return [players, playtime_cleaned, complexity, picture_link, url]