Added description for check-moves function.