Fixed a bug where the selected square would continue to move albeit collision hasn't occured