Assigned mines and handled input validations