Completed the mine field challenge in ruby