Implements getPlayerPieces and adds missing logic