My solution for Create Code Combat challenge