Re-organizing the code so that the players are object based.