Updated code and added condition so bugs dont spawn on top of each other