fixed bug in choosePiece that crashed game if user inputted empty string