Updated logic to not allow placing a piece on another one