Added PLayer and Main classes