clicking on a piece displays valid moves correctly on gui