Refactored spawning positions which fixed some bugs.