main player is not created by default
fix indent and change "as" to "type ="