Fixed a few bugs. More work done.

Fixed a channel being closed during the movement check.