Creating player archetype and main function