Swift programming sample code, working on a Thai language learning game