Implemented simple AI movement

Improved overall structure in map generation.