fixed bugs with spawnrate and creating enemies