fixed a bug when checking the uniqueness of a position, also I think the snake I made up may be invalid