Moved initialisation from the main method to it's own method called init_player. Done the same with feeing the memory for the players. The code to free memory is now in destroy_player.