added ai and singleplayer