Changed name of function that generates the possiblemoves