Updated move functions to delete old piece
Added check lines function