Moved map generation code into script. Working on keeping track of enemies