added robot spawn code (not finished)