Wordle Algorithm Function to check if a word in a Wordle-clone game is correct, incorrect or misplaced. Part of a school-project.