implemented selecting piece for move