Creates a database of perfect moves for a boardgame