Add definition to function all_in of player module