Refactored file structure. Implemented rules. Started on minimax.