Snake game written by swift language