Added another documentation. I think I found the issue.

Check the comment. I think that there is a casting issue for the
parameter here to the getPossibleMoves function.