fixed main errors and added << operator for player