cleanup
cleaned up comments
Fixed a bug where in certain situations pieces couldn't be moved due to
an index out of bounds and implemented move counting