Implemented the first 3 rules for evolution step