AI update and end game update

2 versions of AI now
update
Merge branch 'master' into branch