<s>[INST] returns the piece at the certain position . concode_field_sep int MAX_BOARD_SIZE concode_elem_sep Piece pieces[] concode_elem_sep int KING_PIECE_TYPE concode_elem_sep int SINGLE_PIECE_TYPE concode_field_sep boolean isOccupied concode_elem_sep void removePiece concode_elem_sep Vector<Piece> getBluePieces concode_elem_sep int sizeOf concode_elem_sep void kingPiece concode_elem_sep int movePiece concode_elem_sep Color getPieceColorAtSpace concode_elem_sep Vector<Piece> getWhitePieces concode_elem_sep boolean boardContainsPiece [/INST] Piece function ( int arg0 ) { Piece loc0 = new SinglePiece ( Color . red ) ; try { if ( isOccupied ( arg0 ) ) { loc0 = pieces [ arg0 ] ; } } catch ( ArrayIndexOutOfBoundsException loc1 ) { } catch ( NullPointerException loc1 ) { } return loc0 ; </s>