added the option to specify the spawning location of the player object