Made a fix for invalid moves (pieces on side moving in on themselves)