Add an indicator of where can place a piece

And fix a bug of history.