Broken implementation of choose_piece.