A method for finding the most optimal building strategy in Cookie Clicker.