Fixed swapcount and animation bug

Fixed a bug that caused animations to not revert to idle.
Fixed a bug that caused the "No turn end if no swaps were made"
condition to stop working.