Singleplayer AI working (needs bug fixes)