Added spawnPlayer method.