Did this for a school project (wouldn't normally use a disgusting language like swift)
There is a problem. The program considers f10 to be an invalid input when, according to the rules, f10 is indeed valid.
@ldrago6: Thanks. It should be fixed now.
@JohnBishThanks! Also, this was a really well done project!