refactored method to
refactored function to pick player piece