Changed AI and moved content from index to cardgame class