added AI to single player mode

and some cosmetic changes as well