refixed code for chestspawning >:(