public version of State Hunt in Swift - initial commit