Cleaned code and fixed ant spawning bug