Updated logic.hs and added aigame.hs