Player initial function