some ai and map
some code added