added action for choosing

gets piece getting x and y and piece chosen