prevent impossible moves
logic fix