adding selecting

finished the selecting and deselecting of pieces