check whether the step is next to another piece