Added numberOfRevealedSpaces function.