implemented rules sucessfully and added random initial state