Refactoring

Added isCurrentPiece method.